IMotion.SimulateAxisCam method
Simulates the cam interpolation results. Can be used before a cam is applied to an axis to make sure the slave is in the right position.
Namespace: IntervalZero.KINGSTAR.Base.ApiAssembly: IntervalZero.KINGSTAR.Base.Api (in IntervalZero.KINGSTAR.Base.dll) Version: 4.4.0.0
Syntax
KsReturn<McCamInfo> SimulateAxisCam(
int Index,
double MasterPosition,
double MasterOffset,
double SlaveOffset,
double MasterScaling,
double SlaveScaling
)Function SimulateAxisCam(
Index As Integer,
MasterPosition As Double,
MasterOffset As Double,
SlaveOffset As Double,
MasterScaling As Double,
SlaveScaling As Double
) As KsReturn(Of McCamInfo)Parameters
Index [in]
Type: int
The index of a cam table. Indexes are zero based. Aliases affect this parameter.
MasterPosition [in]
Type: double
The master position in the cam table.
MasterOffset [in]
Type: double
The offset to the positions of the master axis in the cam table.
SlaveOffset [in]
Type: double
The offset to the positions of the slave axis in the cam table.
MasterScaling [in]
Type: double
The factor for the master profile (default = 1.0). From the slave point of view the overall master profile is multiplied by this factor.
SlaveScaling [in]
Type: double
The factor for the slave profile (default = 1.0). The overall slave profile is multiplied by this factor.
Return value
Returns a KsError code and an McCamInfo value.
Examples
N/ASee also